/*
 * @Author: Dorange.Wang
 * @Date: 2021-07-06 11:10:23
 * @LastEditors: your name
 * @LastEditTime: 2021-07-20 11:26:48
 * @Description: file content
 */
import Vue from 'vue'
import Vant from 'vant';
import Dayjs from "dayjs";
import isLeapYear from "dayjs/plugin/isLeapYear";
import utc from "dayjs/plugin/utc";
import 'vant/lib/index.css';
import router from './router'
import store from './store'
import './utils/auth'
import './router/permission'
import Mos from './utils/mos'

import App from './App.vue'

Dayjs.extend(isLeapYear);
Dayjs.extend(utc);
Vue.use(Vant);
Vue.config.productionTip = false

store.dispatch('loadAppInfo')

const run = async () => {
  await Mos.init()
  new Vue({
    router,
    store,
    render: h => h(App)
   }).$mount('#app')
}
run()